remove legacy packages