added port input for query-server