- made injectLibraries a private function
- code cleanup