rewrite for using of node-curl insteaf of curl from OS