added smartscan and better comment bindings