moved refresh out of method as it was causing some tests to fail...better implementation later.