in the process of wrapping cpp monte carlo functions