[enh] more flexible category selection