first working version of udev script