move init of driver to outside autogenerated block