update mirror, use utils functions.