in the process of making S1 work in main.cc, end of day