vector can contain nested handlers