handle messages from mosto

Signed-off-by: Tomas Neme <lacrymology@gmail.com>