adding time and opening files with case insensitivity