write tasks to PM