copy bluetooth code