make filters do what they say and page output to tempfile
clean up
refactor