added install script, fixed dirty master bug