support both btouch and mdtool builds