file hashing and r/w channel cleanup