re-instated cmd line arg funct