made some changes to scripts to make them work properly