added refresh flag