small tweaks, changes for mongodb logging