added line option to select protocol