generating and linking a new imod to current user