more clean up of bg_nbd