MARMOTTA-247: fixed protocol hardcoded check