patch generator wip