debugging with logger