handle older OSes