updated scripts for windos and linux