make base path to index