Mini driver
replace lambdas with r.func
improve minidrivera