some directories can be replaced instead of manually coping files, update #2634