support input category in stdin