board files reading refactoring