parsing group list from template
clean