refactore loadboardconfig and small changes