try to fix refresh method. Tests needed