edited logr, chaned api