fixing instantiation of messenger