update public directory