added ability to add index in statics