split bfg into several files