new beta prime implementation
Merge branch 'dh/betaprime'