get rid of bson_init in  decoder as it is unnecessary and causes leaks.