minor script clean up