disables some features on condition