ActionsParser refactor

Can we please introduce finalize as part of this PR? (only then an Action parser can be finished)