improve 'dist' task