move driver functions to driver file and out of module
add the global scotch view namespace & module namespace