tried something new with events, didn't work, reverted with comments