no need for the $.when technically.. you can just chain the .done and .fail to the processFlow call...