prepare trak for NPM publish
fixes bug if certain items parameters are missing
compile lib