cleaned up error logging