build args and check args