updated refresh mechanism