more crappy platform code