switched logging calls