removed unnecessary logs other than if event logging is turned on