various script updates