add max field allowing to config when init