add file existence checking, hash from two arrays, JSON, and system time