rename index to base. update makefile