check output too