fixed bug in cavitylock, added array pass to ipc