update for automatically assign downloading directory