support two tasks

before this change, when running two tasks at the same time, only the
last one key-value pair is persisted.
add support to export new format manifest