inherit errors correctly