refactor appflow sequence() method for getter / setter functionality