getting host and portname from yaml files