bug with loading from file repaired
pdf improved