double-check output and error