add gosquared code