rest requires IO::Scalar