remove junk code
handle empty hosted domains file