ok got dth stuff to work now.
Added a faster read function to the BBB gpio stuff
more testing needed but it works.