updated files to support addons and subdomains
accidentally removed :(