implement #48, --keepremote flag