finish implementing the trigger stuff
delete class we only used for testing
fixes for the trigger firing