modify index to point to subdirectory