replaced automatic files with patches