categoryEntry add should be part of a try-catch statement