cleanup api context operators