changes to several scripts