create patched src