fix loading externals