added json retrieval copypasta