ported spark text, nested, mixed workflows from 0.1 branch