working on better error messages during refresh