added ag mode, and multiple cursors