moves attribute groups to new JSON template
cleanup