modify Makefile and config