added freeze flag