add category filtering

fixes #24