add ex handling to gdocs