adding support to configure domains