add exit conditions for argparser