added ability to change port and host