handle compatibility errors and increase test coverage