read hostnames from known_hosts file instead of config
cleaned up the parse_branch functionality