changed GBB and HGOB to batch mode