fixes domaindir variables