errors in log, reason eventregister function was calling more than once