move all micro controller code together