formatted some responses, return proper json and ids