restore previous event code - optimized scheme was going to lead to more other issues; added sound engine/plugin