-d option is working