creation of messageFactory (unfinished)