Black ends up ahead in material after 18... Qxe2+ 19 Qxe2 Nxg3.
Should have read your post first. No wonder I couldn't work out where to move.
am i missing somthing or why doesn't black just take the rook with 18 ...Qxh1
a couple of errors
after reading sniperghost's post i feel like an idiot