make it browserify friendly