better import errors (issue 1368)