avoid deprecation warnings with D 2.066.1