setup a tunnel generator method