tweak to add the known hosts to an attribute