split cat-core into cat-client and cat-core