Continue updating the rewritting -> i've added the detection of broken subworkflows and their rewritting