fixed auto-disabling, exposed default setting for `max_size`
backported fixes for auto disabling