R: rename local.scan to local_scan