adapted api splits to new table