added subdomain logic for rapGenius