improved installation script