dim lm now explicit (list of right len)
move to ordered groups
closes #4