added configurable params and sniffer