allow for different query and host ports