fix compatibility import namespace issues