modified triggers and stuff

don't ask me I don't remember these changes