keep api the same with node-requires