hopefully fixed speed issue by only accessing json and utility once