deep imports, and improving error messages