bug fixing when the reader path is different than writer path