pub sub for commnd processing