edited logr, changed api