put frontend_ctx variable into driver struct