fixes to publish on npm registry