finally got dist working