only writing api status to local file if it was updated