hacking at prototype to get around hostname / app registration restrictions.