added proper support for triggers