first versions of consts, util, and check
minor changes