Stub client and server separation