added onNewBlock