refactor the code to support refresh an offline parameter