modify scripts for auto installation