close #11, added triggers