added param for host and port