moving core into a package