adapted to the new libklio interface for msg