parameterized PrintMotd