add routine to parse args