add io on connection, add createUser method