update bdlib (closes #57)