usage in nodejs
refactor