check _ENV_PORT prior to use