added cmdargs for better args handling