better error handling because imports are screwy