first modified v1 for nodejs