moved trigger.py to handlers.py