adds minor debug code to make sure things are refreshing