replaced script with makefiles