board detector for bdk. (protoype and to be refactored)