update so sid is dynamically gotten from task id