adding a category method to DataDir