made sure errors were being passed through properly