support strict-di mode