set wait and retry variables