add get sub-domain func