merged early exit code