simplified nextPathInDir
moved more functionality from sketch to boards
moved sendData to boards