write uninstall script