cleaned up and modernized build process for index-set