code for determining username of connected client had an obvious bug,
fixed