working on logger