add files write the log program