fixed issues with the way it pulls in domain for mobile