moved reference file build till post-argument parsing