add check for protection key