loader: nicer exceptions