rework all the input hooks and remove all the LAPI stuff