make a put/get loop