add max wait param for config