working on ket logging