support filtering (TODO: parse use spec)