add note and code for dependency injection allow for minification