various script changes