r logger minor bugs fixed