fixes for dist