a helper method to differentiate OS