fix cmd line arg checking