added option for allow_explicit_index