update standard input/output