update error logging