adding some extra platform checks to helper.rb