bluez support for cm-10.1 and some bug fix