bugfix and implemented merge-extruding