add BorderAdapter and EmbeddingAdapter