working on seding the files to the clinet in the correct order