working on JSON responses
fixed return types