decided to handle errors in running scripts