changed logd
better logging