switched to C-version of third_order
moving configure_file() around