added call_endpoint method