console_cript is now a class
improve script generation