adding functionality in json storage implementation