fixes nesting for bfgminer module