use hack fix for now. resolves #105.
extract iminsert out of core into an extension