update port code to enable heroku deploy