adjust rbuffer & shm api