refactor the rescuesystem check