added getCurrentFileName() for error reporting