modify fetch.js for need