fix xml url request not working since major code refactor