added support for joining domain