update data sources and s_code