rename C/M/I, move more stuff to constants.js