add a convenient handling of categories