added auto file name hash function