basic functions
check protocol prefix