updated sequencer and sequencer test

sequencer works although needs modification to handle repeated branches