lots of reorganization. First succesful actual bind to a function from scanners.h