need to rm outputs if error