improve dll management