modifictions to the scripts