process argv from command line