rewrite of mkblctrl to be compatible with fmuv1/v2 and some cleanups