move sendRequests in common.js