add isBuffer, trying to implement a ipc protocol but not success