add max pool size setting