finish prepare dist