getting protocolfrom req