add gosquared code to index2