moved everything to events now

can't somehow get onlogin onLogout and onAdvance to work.
gotta look for a solution.