fixed issues
d option added