updated scripts for compilation