create 'main' & 'common' modules to replace 'core'