integrating filters into simulator and main (untested)