working on scenario processing