added bluetooth communication functionality