move protocols into their own ns