bluetooth initialization; fixed crashing