changes for pxshm and persistent