removed token from logs
better error handling for api
give server info to client on errors during development