doc and logging fix