updated with missing new lines
added error handler for the dev environment
updated config with staging settings