import, adapt, and upgrade calligra/karbon