There are other things that affect platform options, i am not sure this is the best approach here, but the right way would need some refactorings :-(