extraction (with some bugs)

for advanced cutting / complexity implementation