stores and loads tasks