updates for latest rust
change to -d as flag argument