get rid of bson dependency