added a few minor changes to the scripts