server: read/write now goes through connection fn's