added domain setting to attribtues.