minor script placement changes