ensure hostname is set
uid and homepageUri fixes