made more express-like to publish to npm