added betturl and connection url parsing