add max size setting