move copy to index.js