add an optional category to be inserted into the path