add a choice to choose the length for smashing index field, also we can do this for all fields (but not scale well)