LMI my custom driver - how to write ?