use the fotonauts libbson project