refactored to use pre-compiled static library instead of code files.