extract search before protocol for obvious reasons :-/