pridan logging casu, setTimeout 1 nahrazen nextTick