check disable flag