it is possible to package all the ``if args.jsonfile:`` into the ``ph.get_dataframe``.