added __session.writeStroke