some enhancements to autogrow feature