logging implemented partially