change sc constructor to read parameters from the env