allow setting port and host in config