optimize mongo client
some optimize