added more error handling messages to modify_script
improved error handling messages