modified logger