add the forgotten 'type' in recursive handflow()