group/ungroup, polygonsi, bugfixes