first version producing full messages on stdout