change how errors are handled