add handwrite recognition mode
merge