added option buildIndex to Builder.java