fixed getting command line arguments