added rthrowsums to pkg