ugly workaround for an import bug that needs refactoring