added support for relay guests and outofstream error handling