reduce number of flags; use another mechanism for checking OS version