remove global reader & writer