modified rscannr