library: allow categories to have their own options