added functionality for patches in luci-commotion