add NewConfigFiler and ReadConfigFilter for unit-testability