minor script cleanup