move protocols to separate namespace