fixed put to use payload instead of query