smartscan, hook for eshell