added some retry options to tunnel script