more detaled wip on name coming from package.js
tests and minor fixes for --name