improved codestyle in mongo plugin