correctly if/else and properly check containers
prints protocol to the console only when loggin in

protocols for 1.0-1.8.1 now can be identified