hashsum code cleanup