minor changes to PS scripts.