handle multiple patch tickets

fixes #2 #3