added sleep in shmposix