driver code not ported right from win branch