modified way drivers register into gateway stack