switched from json to pickle and refactor