added select and reject keywords and filtering parser