refactored adapters for using FileParser