debugging refresh method