refactor imod (reference to an instance) to current imod