print_file etc now working