added capture command line flag
IO may be fixed now?