FIXME: modify code to support special INSERT behavior