sub-domain functionality added