pull request - script updates

update by Matt/Adam