updated version for republish to npm