added autopatcher