support for --sum added