apply patch from fabpot