clean reading detecting gem path, update #1755