updated flow station to fix some bugs with array assignment