apply protocol from command line