made port allocation beanstalk friendly, beanstalk uses nginx to proxy