updated tomographic_scan for online use