reorganized logging and added mgo logging