fix dependency injection so uglification doesn't break us