$di may not be readily available