re-organized filter data stuff into a script