support suffix matching (RFC6839)

closes #6