basic support for canceling operations