trying to fix the error logging
trying to fix the error logging