CLN rearrange main to make a little clearer