fix legacy packages