#273 ensure reference paths are well terminated
Some review comments