add upload & write logs