move some logs
use nullptr instead of 0