apply :replace and :insert like :create and :delete