use default set_endpoint method