a bit of cross platform preparation