nicer target check
added support for http and https

fixed #16