refactor args conversion