fixed bug where it would not correctly check for http:// prefix