untested, but idea driven event code