added -help and -dump options