put in a written to flag

still getting 0's in the payload, makes no sense