fix by taking out platform specific flags