reordered installation script