refactor cat server config