crash fix for MGBoxProvider, and added box reuse functionality