makes a local copy to run funcionally