BSON outputting to the correct child directory