deprecated log function removed. temp events solution added.