implemented basic support for RFC 6638