more tweaks. move BT socket def to views