removed logging from production and added error handler, commented out logger in dev for now