adds return_code type check w/ output_timeout