finishing the triggers plugin