handle KeyError exception for now