updated with proper mongo client plugin support