added support for rewriting different types of drivers (currently only network and tester supported)