fix issue with cmdargs impurity