adding automatic resizing to stinger allocations. TODO: add the option to fail loudly instead of resiziing