partially implemented server/client logic; client blocks on input stream instantiation