added argv length check