updates to error logging