allow port to be controlled by env
pull out posting so it can be disabled