bad import and missing return fix