rewrite inputdevices