fix for create_table: groups based on spec.

just going off your spec; done some minimal testing. double check to see that i'm understanding this correctly.... (ty for a great mod!)