improve the index.js, TODO: fix zipdir issue