let mb support default intf
reorg the code structure, using thread for unibidirectional mode too