rearranging install script