improved installer script