all functions added, copy largefile bugs need to be fixed