modify parameters for '-type', add emm and ecm filter function