update hash calc for files