Make flow.replace() public