maxitem config support