modified refreshDoc rules