added saved triggers. unit tested