modify 'wait' function and create tonnel behaviour