passing channel to storage task to identify when update happens, simplified some code