change name of 'split' method to 'switchFlow'