correctly setting server port from env