reformat and actually send a response
Use promises and log an error