add cancel method to endpoint