moved select scripts from parsing to filtering