Add mygroup block
Fix bugs