new version, load hosts configs from classpath, url and classpath resources, solved encoding problem