add cmd filter method