adding basename to index