add additional error logging