fixed bdphello and bdphello_c