command line arg parsing added