cleanup; fixes to reflect changes in rnglib API