improved debugging messages in cc_handler, cleaned up cut generation