added argv checks