made max_gigabytes tunable