added cycle for cmdline args