changed file pointers to absolute paths