added logging to err domain