porting all the anna-logger code