add forward_sample_from_prior; run in __main__