trying to fix the dist process