improves filtering of bluetooth/serial port in processing code