prepare for platform independt shm