fix logs, fix events and better discution loading