make sure error callbacks return