fixed destination and index.js for apps