slight improving in logging