made package compatible with NPM