console logging to make sure refresh is working.