added implementation of bluetooth and simplified controller in v2 and v3