better cmd args processing