allow define index in constructor's options