modified to register dlls