integrated messages repository, working on id's in repositories