refactored category service into oscommon