fix for create_table: groups based on spec.