adding topsums command for localrecords