coremap & pt refactoring for compile