Split code server/client