use stdin/stdout for communication