use "in" to complement "out"
make ensure multiline
fix memory issue with multiline ensure