avoid output from detect messing up output of release