update is now in mirror.R
update