moved protocol into config