almost function path extraction function
included the temporary template file