better command line handle