added bluetooth availability detection