added custom domain support