generic proxy utils written in node.js