Shouldn't need to do all this, just pass in the patch in the init.