switch to stdin/stdout for input/output