some bad bug in the previous version that doesn't take in flow parameter override.
lots of bug fixes