cleanup cg code
using code_lbl structure insteed of label_handle for cg internals