handle short directory param