fixed bfd functions