basic BSON support (issue #2)