prototype of permission&msg queue part