Bevans/tag trigg

fixed #114 

still to be tested: trigger creation

would be good to get a sanity check on the trigger logic