added TUNNEL_STATE as command line parameter