still outputs errors but is more sane