lua now supports output stream