fixes for dist copying