cleanups refactoring, added supportsRichtext to backends