add some fncs to index.js