default arguments for host and on_connect