moved bluetooth logic into the earlystagedetector project