fixes on callbacl for endpointcal