add config rotate support