changed to get client from connection (oddly named)