vhost: add external message handling to the API