better check for uploaded txt files