begin refactor driver into base/cee/cuda/etc
refactor: code, global & array
finalize debug-device nb