[fix] Properly handle protocols