refactoring protocol panel