fix for multiple os versions