copy foundation locally to avoid load errors