generate msgs as a dep