exported bt, fixed ir not avail, removed improper extern declerations