more error logging improvement