sets hostname
stripping non-dns chars
updating metadata