added add_to_path() function to IO