BUG: need to reorder package installs