changed log printing mechanics