func parse_args moved before main