New handlers and socket reader/writer