added to lua util: argument for automatically launching the system, separate functions for redirecting output