modify makefile and script to work with previous commit