single app with option to select client/server