installation script + small fixes