add skeleton of insert and wait for insert