add patch file from callback implementation