Modified server to support PROCESS for heroku