adding grabbing JSON functionality