added class specification for string key objects