fix resource resolving
fix relink of basis.require