fix global arg/output