converted patch usage to a lib for forge & fml