refine code, use shared memory when ignore response