reworked constants, "MAIN" renamed to "CORE"