added ability to use external files as priors