remove port and host envs