updated the read/publish by path functions