added getOS to fix issues where thisOS wasn't set