support for different 'os' versions