bug fixing in local data file usage