changed logging calls