changed output map to Map<String,Object>