freaking finally got PLATFORM macro to work