implements distribute files(not working)