Discovered mystery of AttributeSetInfo message string - for some reason
it messes up attribute sets. Did other minor changes