added json parsing and library storage