added minimist args check