fixing logging & documentation