fixes for bluetooth

This still does not work, only for 10-20 seconds.