quick error logging improvement