splitting packages.js wip