skeleton for TaskSelection and some code for XMPP comm