moving bfuncs to butils.c
dump, WIP
dump + merged butils.c in utils.c