refactoring - removed client/server receive threads