making it usable directly or in npm/commonjs
works locally