moving resources to index file