move old touch-handling code into new version