added function for addon domains, writing to addons file