Works but saves everyting to ram then copies to local dir :(