write fn for lists of refs from our incoming api