rewrite bluetooth related code